package com.zmc.admin.infrastructure.dao;

import com.zmc.admin.infrastructure.entity.SysRoleMenuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色和菜单关联表
 * 
 * @author zmc
 * @email 
 * @date 2024-10-09 17:27:49
 */
@Mapper
public interface SysRoleMenuDao extends BaseMapper<SysRoleMenuEntity> {

    int checkMenuExistRole(Long menuId);

    void insertBatch(@Param("list") List<SysRoleMenuEntity> list);

    void deleteByRoleId(Long roleId);

    void deleteByRoleIds(@Param("roleIds")List<Long> roleIds);

}
